// Recherche d'un matche

var lookedTeam = -1;

function getMatches() {
	var teamId = document.getElementById("teamId").value;
	if (lookedTeam == teamId)
		return;
	lookedTeam = teamId;
	
	var param = new Array();
	param[0] = teamId;
	param[1] = "sub_displayAMatche.php"
	
	invoke(1,"Matche","lookforMatches",param, displayMatches)

}

function displayMatches(ans) {
	document.getElementById("result").innerHTML = ans;
}